package com.jg.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName books
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Book implements Serializable {
    /**
     * 
     */
    private Integer bookID;

    /**
     * 
     */
    private String bookName;

    /**
     * 
     */
    private String author;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date publishDate;

    /**
     * 
     */
    private BigDecimal price;

    /**
     * 
     */
    private BookType bookType;


    private static final long serialVersionUID = 1L;
}